<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>修改项目信息</title>
<link href="/estate/css/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/estate/js/lhgcore.js"></script>
<script type="text/javascript" src="/estate/js/lhgcalendar.js"></script>
<script type="text/javascript">
	function updateManagePro(form){
		form.action="/estate/admin/manageProAction.action?method=update";
   		form.submit();
	}
	
	function turnToproRegister(){
	window.location.href="/estate/admin/manageProAction.action?method=list";
	}
	
	function deleteConfirm(id){
		var question=confirm("确定删除文件吗？");
		if(question!=0){
			window.location.href="fileUploadAction.action?method=delete&deleteId="+id;
		}
	}
</script>
</head>
<body>
<form name="form1" method="post" action="">
<table border="0" cellpadding="0" cellspacing="0" style="background-image:url(/estate/images/gtbg.gif) " width="100%">
    <tr>
      <td width="50%" height="82" rowspan="2"><img src="/estate/images/guide_01.gif"></td>
      <td width="50%" style="background-image:url(/estate/images/guide_02.gif);color:#cc1212; font-size:16px; font-weight:bold; text-align:right; padding-right:50px; letter-spacing:1px; " height="39"><strong>修改项目信息</strong></td>
    </tr>
     <tr><td width="50%" style="background-image:url(/estate/images/guide_03.gif); height:43px;" align="center" valign="middle">
	  <table width="50%" border="0" cellspacing="0" cellpadding="0">
        <tr align="center">
          <td><input type="submit" name="Submit1" onFocus="this.blur();" value="提交" class="button4" onclick="updateManagePro(form1)"> </td>
          <td><input type="submit" name="Submit2" onFocus="this.blur();" value="打印" class="button4"> </td>
          <td><input type="submit" name="Submit3" onFocus="this.blur();" value="退出" class="button4" onclick="turnToproRegister()"> </td>
		 
        </tr>
      </table></td>
    </tr>
</table><br>
<table width="60%" align="center" border="0" cellspacing="0" cellpadding="0" class="main">

  <tr align="center">
    <td colspan="4" class=""><input type="hidden" name="id" value="${manageProVo.id }"/></td>
  </tr>
  
  <tr align="center">
    <td colspan="4" class="tableTitle">修改项目信息</td>
  </tr>
  
  <tr>
    <td width="15%" align="right" class="two" ><label style="color:red;">*(必填)</label>项目编号：</td>
    <td width="33%" class="two" align="left"><input name="proNum" type="text" class="input" value="${manageProVo.proNum }"></td>
  </tr>
  
  <tr>
    <td align="right" class="two"><label style="color:red;">*(必填)</label>项目名称：</td>
    <td class="two" align="left"><input name="proName" type="text" class="input" value="${manageProVo.proName }"></td>
  </tr>
  
   <tr>
    <td width="20%"  align="right" class="two">委托单位名称：</td>
    <td width="30%"  class="two" align="left"><input name="delegateCompany" type="text" class="input" value="${manageProVo.delegateCompany }"></td>
  </tr> 
  
  <tr>
    <td align="right" class="two">委托单位联系人：</td>
    <td class="two" align="left"><input name="delegateUser" type="text" class="input" value="${manageProVo.delegateUser }"></td>
  </tr>
  
  <tr>
    <td align="right" class="two">委托人电话：</td>
    <td class="two" align="left"><input name="delegatePhone" type="text" class="input" value="${manageProVo.delegatePhone }"></td>
  </tr>
  
  <tr>
    <td width="20%" align="right" class="two">项目办理人：</td>
    <td width="32%" class="two" align="left">
    <select class="select" name="manageUser">
    		<optgroup label="请选择签署人" >
    		<s:iterator value="#request.userMenu">
            <option value=<s:property value="id"/>><s:property value="name"/></option>
            </s:iterator>
    		</optgroup>
     </select>
    </td>
  </tr>
  
  <tr>
    <td width="15%" align="right" class="two" >项目联系人：</td>
    <td width="33%" class="two" align="left"><input name="contactName" type="text" class="input" value="${manageProVo.contactName }"></td>
  </tr>
  
  
  <tr>
    <td width="15%" align="right" class="two" >项目联系人电话：</td>
    <td width="33%" class="two" align="left"><input name="contactPhone" type="text" class="input" value="${manageProVo.contactPhone }"></td>
  </tr>
  
  <tr>
    <td width="15%" align="right" class="two" >咨询人员：</td>
    <td width="33%" class="two" align="left"><input name="consultName" type="text" class="input" value="${manageProVo.consultName }"></td>
  </tr>
  
  <tr>
    <td align="right" class="two">咨询人员联系电话：</td>
    <td class="two" align="left" ><input type="text" name="consultPhone" class="input" value="${manageProVo.consultPhone }"/></td>
  </tr>
  <tr>
 	<td width="10%" align="right" class="two">实施方案说明：</td>
    <td width="10%" class="two" align="left">&nbsp;<textarea name="implProgram" rows="5" class="textarea" cols="40">${manageProVo.implProgram }</textarea></td>
  </tr>
  <tr>
  <td width="20%"  align="right" class="two">实施方案列表：</td>
  <td width="20%"  align="left" class="two" > 
  <c:forEach var="programList" items="${programList}">
    <a href="fileUploadAction.action?method=download&filePath=${programList.filePath}&fileRealName=${programList.fileRealName}">${programList.fileRealName}</a><div style="float:right; cursor:pointer" ><a onclick="deleteConfirm(${programList.id})">删除</a></div><br/>
  </c:forEach></td></tr>

  <tr>
 	<td width="10%" align="right" class="two">实施计划说明：</td>
    <td width="10%" class="two" align="left">&nbsp;<textarea name="implPlan" rows="5" class="textarea" cols="40">${manageProVo.implPlan }</textarea></td>
  </tr>
  <tr>
  <td width="20%"  align="right" class="two">实施计划列表：</td>
  <td width="20%"  align="left" class="two" > 
  <c:forEach var="planList" items="${planList}">
    <a href="fileUploadAction.action?method=download&filePath=${planList.filePath}&fileRealName=${planList.fileRealName}">${planList.fileRealName}</a><div style="float:right; cursor:pointer" ><a onclick="deleteConfirm(${planList.id})">删除</a></div><br/>
  </c:forEach></td></tr>
   <tr>
  <td width="20%"  align="right" class="two">文件列表：</td>
  <td width="20%"  align="left" class="two" > 
  <c:forEach var="fileList" items="${fileList}">
    <a href="fileUploadAction.action?method=download&filePath=${fileList.filePath}&fileRealName=${fileList.fileRealName}">${fileList.fileRealName}</a><div style="float:right; cursor:pointer" ><a onclick="deleteConfirm(${fileList.id})">删除</a></div><br/>
  </c:forEach></td></tr>
  <tr>
  <tr>
    <td class="" align="left" ><input type="hidden" name="recordDate" class="input" value="${manageProVo.recordDate }"/></td>
  </tr>
  <tr>
    <td class="" align="left" ><input type="hidden" name="recordUserId" class="input" value="${manageProVo.recordUserId.id }"/></td>
  </tr>
  <tr>
    <td class="" align="left" ><input type="hidden" name="currentStep" class="input" value="${manageProVo.currentStep }"/></td>
  </tr>
  <tr>
    <td class="" align="left" ><input type="hidden" name="state" class="input" value="${manageProVo.state }"/></td>
  </tr>
  
  <tr>
  	<td colspan="2" class="two" align="center">
  		<input type="submit" name="Submit2" onFocus="this.blur();" value="提交" class="button2" onclick="updateManagePro(form1)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  		<input type="reset" name="Submit2" onFocus="this.blur();" value="重置" class="button2"> 
  	</td>
  </tr>
 
  <tr><td class="two" colspan="2">&nbsp;</td></tr>
</table><br>
</form>
</body>
<script language="javascript">
  function doit(){
    window.open('additional.htm','','')
  }
</script>
</html>
